







// var DEBUG=true

// if(DEBUG){
//     console.log('debug')
// }
// location.href="www.baidu.com"
// function fn(){
//     if(1==1){
//         widnow.location.href="www.baidu2.com"
//     }
// }
// var foo={bar:1}


// widnow.location.href="www.baidu2.com"+ "?sjgjdga" +'';





// location.href="www.baidu.com"
// localStorage.setItem('cx','123')
// localStorage.setItem(getReturnUrl({url:'www.a.com', query:'get'}))




// let serviceAppointData = await ytLocalStorage.getItem('serviceAppointData')
// let serviceAppointData = await ytLocalStorage.getItem('serviceAppointData')


// var res=''
// async function func() {
//     const r = await asyncFn1()
//     await asyncFn2()
//     // res = await asyncFn2() 还未实现
// }

// localStorage.getItem('cx')
// let  fn = (a,b) => a + b
// widnow.location.href="www.baidu2.com"+ "?sjgjdga" +'';

// if(DEBUG){
//     console.log('debug')
// }

// let url = `/${proxyServerName}/microweb/${appId}/hotspot/hope/question?bizType=103&bizId=${accessRegId}&hosId=${hosId}&wjId=${wjId}`;
// window.location.href = url

// widnow.location.href=url



// location.href="www.baidu.com?search=aaa"
// var url='www.good.com'
// widnow.location.href=url;

// const aa=`www.baidu2.com?serach=110&${getname()}&time=0`
// widnow.location.href=aa

// widnow.location.href=`www.baidu2.com?serach=110&${getname()}&time=0`
// location.href = returnUrl.indexOf("?") > -1 ? `${returnUrl}&hosDistId=${hosDistId}` : `${returnUrl}?hosDistId=${hosDistId}`;

// var a=''

let params = {
    apiName: `/r/${baseInfo.srcId}/60680/230@med3`,
    hosId: hosId,
    bizType: bizType,
    bizIds: JSON.stringify([parseInt(regId)]),
    returnUrl: `${window.routePrefix}/serviceAppoint/orderDetails?hosId=${hosId}&regId=${regId}&moduleType=${moduleType}&pkgId=${pkgId}&pkgNo=${pkgNo}`,
}
payment.doZeroPay(params, typeName, () => {
    location.href = params.returnUrl;
})




// const aa=`www.baidu2.com?serach=110&${getname()}&time=0`
// widnow.location.href=aa
// ()=>{
//     window.location.href = `www.baidu2.com?serach=110&${getname()}&time=0`
// }


